//
//  Model_ClassicSentence.m
//  yjw-winner
//
//  Created by 隆霁 on 2018/9/26.
//  Copyright © 2018年 Shanghai decade financial information service co., LTD. All rights reserved.
//

#import "Model_ClassicSentence.h"

@implementation Model_ClassicSentence
- (CGFloat)cellHeight {
    if (_context) {
        return [_context boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width - 20, 100) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:12]} context:nil].size.height + 20 + 3;
    }else {
        return 20;
    }
}
@end
